package com.yiguo.gmall_pulisher.service;

import com.yiguo.gmall_pulisher.beans.DAUData;
import com.yiguo.gmall_pulisher.beans.GMVDate;
import com.yiguo.gmall_pulisher.mapper.PublisherMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PublisherServiceImpl implements PublisherService{

    @Autowired
    private PublisherMapper publisherMapper;

    @Override
    public Integer getDAUbyDate(String date) {
        return publisherMapper.getDAUbyDate(date);
    }

    @Override
    public Integer getnewMidIdCountByDate(String date) {
        return publisherMapper.getnewMidIdCountByDate(date);
    }

    @Override
    public List<DAUData> getToDayDate(String date) {
        return publisherMapper.getToDayDate(date);
    }

    @Override
    public Double getGMVbyDate(String date) {
        return publisherMapper.getGMVbyDate(date);
    }
    @Override
    public List<GMVDate> getGMVdatasBydate(String date) {
        return publisherMapper.getGMVdatasBydate(date);
    }
}
